
package hero.nio;

public class Test {

    public static void main(String[] args) {
        Work work = new Work();
        work.start();
        System.out.println("finished");
    }

}
class Work extends Thread {
    public void run() {
        try {
            wait();
        } catch (InterruptedException e) {
            System.out.println(e);
        }
        System.out.println("shit");
    }
}

